package DataStructures;

import java.util.ArrayList;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Manuel
 */
public class ResultsBean{
    private String request;
    private ArrayList<ResultBean> results;
    private boolean error;
    private String errorText;
    private String resultText;
    private boolean intermediate;
    private String datacode;

    public ResultsBean(){
        error = false;

        results = new ArrayList<ResultBean>();
    }

    public String getRequest() {
        return request;
    }

    public void setRequest(String request) {
        this.request = request;
    }

    public ArrayList<ResultBean> getResults() {
        return results;
    }

    public void setResults(ArrayList<ResultBean> results) {
        this.results = results;
    }

    public void add(boolean atBeginning,ResultBean result) {
        if(atBeginning)
            this.results.add(0,result);
        else
            this.results.add(results.size(),result);
    }

    public boolean isError() {
        return error;
    }

    public void setError(boolean error) {
        this.error = error;
    }

    public String getErrorText() {
        return errorText;
    }

    public void setErrorText(String errorText) {
        this.errorText = errorText;
    }

    public String getResultText() {
        return resultText;
    }

    public void setResultText(String resultText) {
        this.resultText = resultText;
    }

    public String getDatacode() {
        return datacode;
    }

    public void setDatacode(String datacode) {
        this.datacode = datacode;
    }

    public boolean isIntermediate() {
        return intermediate;
    }

    public void setIntermediate(boolean intermediate) {
        this.intermediate = intermediate;
    }

    

}
